package cn.tedu.tmall.front.mall.service;

import cn.tedu.tmall.common.pojo.CurrentUser;
import cn.tedu.tmall.front.mall.pojo.vo.CartVO;

import java.util.List;

public interface ICartService {
    void add(CurrentUser user, Long goodsId, Integer goodsNum);

    void incr(CurrentUser user, Long goodsId, Integer goodsNum);

    void reduce(CurrentUser user, Long goodsId, Integer goodsNum);

    void modify(CurrentUser user, Long goodsId, Integer goodsNum);

    List<CartVO> list(CurrentUser user);

    void del(CurrentUser user, Long goodsId);

    void pick(CurrentUser user, Long goodsId);

    void unPick(CurrentUser user, Long goodsId);
}
